# To change this template, choose Tools | Templates
# and open the template in the editor.
import FilterableList,testwidget
import os

class testverb:
    def __init__(self):
        self.VERSION=1.0
        self.VERBNAME="Testverb"
        self.VERBDESCRIPTION="Concatenates a string of options and displays an xmessage"
        self.VERBSTEPS=4

    def Execute(self,STEP_NO,RESULT_FROM_PREVIOUS_STEP):
        if STEP_NO==1:
            firstwidget=FilterableList.FilterableList(600,600)
            firstwidget.setvalues(['Mannadey','Mohammedrafi'])
            return firstwidget
        if STEP_NO==2:
            firstwidget=FilterableList.FilterableList(600,600)
            firstwidget.setvalues(['is','was'])
            self.firstval=RESULT_FROM_PREVIOUS_STEP
            return firstwidget
        if STEP_NO==3:
            firstwidget=FilterableList.FilterableList(600,600)
            firstwidget.setWindowOpacity(0.5)
            firstwidget.setvalues(['a good classical','a good ghazal'])
            self.secondval=RESULT_FROM_PREVIOUS_STEP
            return firstwidget
        if STEP_NO==4:
            self.thirdval=RESULT_FROM_PREVIOUS_STEP
            os.system(str("xmessage "+self.firstval+self.secondval+self.thirdval))
            return None
